package core;

/**
 * Trida reprezentujici filmovy zanr
 * @author vojta
 */
public class Genre {
    private int id;
    private String genre;

    public Genre(int id, String genre) {
        this.id = id;
        this.genre = genre;
    }

    public Genre(String genre) {
        this.id = 0;
        this.genre = genre;
    }

    public Genre(int id) {
        this(id,"");
    }

    public String getGenre() {
        return genre;
    }

    public void setGenre(String genre) {
        this.genre = genre;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return this.genre;
    }

}
